/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cabs.bean;

import java.util.ArrayList;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import org.cabs.entity.Account;
import org.cabs.jpa.control.AccountJpaController;



/**
 *
 * @author hailh
 */
@ManagedBean
@SessionScoped
public class AccountManagedBean {

    AccountJpaController acc = new AccountJpaController();
    /** Creates a new instance of AccountManagedBean */
    public AccountManagedBean() {
    }
    
    private List<Account> allAccount;
    private  Account selectedAccount;

    public Account getSelectedAccount() {
        return selectedAccount;
    }

    public void setSelectedAccount(Account selectedAccount) {
        this.selectedAccount = selectedAccount;
    }

    public List<Account> getAllAccount() {
        return acc.findAccountEntities();
    }

    public void setAllAccount(List<Account> allAccount) {
        this.allAccount = allAccount;
    }
    
     private String txt1;  
      
    private String txt2;  
      
    private String txt3;  
      
    private String txt4;  
      
    private String txt5;  
      
    private String txt6;  
      
    public List<String> complete(String query) {  
        List<String> results = new ArrayList<String>();  
          
        for (int i = 0; i < 10; i++) {  
            results.add(query + i);  
        }  
          
        return results;  
    }  
  
    public String getTxt1() {  
        return txt1;  
    }  
  
    public void setTxt1(String txt1) {  
        this.txt1 = txt1;  
    }  
  
    public String getTxt2() {  
        return txt2;  
    }  
  
    public void setTxt2(String txt2) {  
        this.txt2 = txt2;  
    }  
  
    public String getTxt3() {  
        return txt3;  
    }  
  
    public void setTxt3(String txt3) {  
        this.txt3 = txt3;  
    }  
      
    public String getTxt4() {  
        return txt4;  
    }  
  
    public void setTxt4(String txt4) {  
        this.txt4 = txt4;  
    }  
  
    public String getTxt5() {  
        return txt5;  
    }  
  
    public void setTxt5(String txt5) {  
        this.txt5 = txt5;  
    }  
  
    public String getTxt6() {  
        return txt6;  
    }  
  
    public void setTxt6(String txt6) {  
        this.txt6 = txt6;  
    } 

    
}
